Data

Today, we’ll use ggplot to visually explore patterns in morphological traits in three different species of penguin. This data were collected and made available by Dr. Kristen Gorman and the Palmer Station, Antarctica LTER, and were compiled by Dr. Allison Horst and colleagues.


Visualizing the dataset

## [1] "species"           "island"            "bill_length_mm"   
## [4] "bill_depth_mm"     "flipper_length_mm" "body_mass_g"      
## [7] "sex"               "year"

Single trait distribution

We are investigating the length and depth of the bills of penguins.

## Warning: Removed 2 rows containing non-finite values (stat_density).

## Warning: Removed 2 rows containing missing values (position_stack).

Relationship between multiple traits

Sexual dimorphism